package com.hobson.design.factory.abstra;

/**
 * 订单客户端
 *
 * @author: haibin.tang
 * @date: 2020/7/31
 */
public class OrderMain {

    public static void main(String[] args) {
        Factory factory = new SelfSupportFactory();
        factory.createPriceService().compute("10001");
        factory.createLogisticsService().delivery("S20200731143939");

        System.out.println("\n");

        factory = new ThirdFactory();
        factory.createPriceService().compute("T0001");
        factory.createLogisticsService().delivery("T20200731143939");
    }
}
